/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.contact;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 手机联系人Entity
 * @author 颜洪毅
 * @version 2016-08-16
 */
public class Contact extends DataEntity<Contact> {
	
	private static final long serialVersionUID = 1L;
	private String memberId;		// 上传该号码的用户
	private String number;		// 电话号码
	private String address;		// 号码归属地
	private String named;		// 称呼
	private String company;		// 公司
	private String job;		// 职业
	
	private String memberName;		// 上传该号码的用户名
	
	public Contact() {
		super();
	}

	public Contact(String id){
		super(id);
	}
	

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Length(min=0, max=64, message="上传该号码的用户长度必须介于 0 和 64 之间")
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@Length(min=1, max=20, message="电话号码长度必须介于 1 和 20 之间")
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	@Length(min=0, max=50, message="号码归属地长度必须介于 0 和 50 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="称呼长度必须介于 0 和 255 之间")
	public String getNamed() {
		return named;
	}

	public void setNamed(String named) {
		this.named = named;
	}
	
	@Length(min=0, max=255, message="公司长度必须介于 0 和 255 之间")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Length(min=0, max=255, message="职业长度必须介于 0 和 255 之间")
	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}
	
}